package com.rede.didiok.search;

import cn.easyes.starter.register.EsMapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.oas.annotations.EnableOpenApi;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, RedisAutoConfiguration.class,
		RedisRepositoriesAutoConfiguration.class})
@EnableOpenApi
@EnableFeignClients(basePackages = {"com.rede.didiok.common.feign", "com.rede.didiok.search.feign"})
@EnableDiscoveryClient
@EsMapperScan("com.rede.didiok.search.mapper")
@ComponentScan(basePackages = {
//        "com.plumelog",
		"com.rede.didiok.common.config.feign",
		"com.rede.didiok.common.handler",
		"com.rede.didiok.common.annotion.FeignSecurity",
		"com.rede.didiok.search"
})
public class DidiokSearchApplication {

	public static void main(String[] args) {
		SpringApplication.run(DidiokSearchApplication.class, args);
	}

}
